import request from '@/utils/request'

// 查询营地项目列表
export function listProject(query) {
  return request({
    url: '/camp/project/list',
    method: 'get',
    params: query
  })
}

// 查询营地项目详细
export function getProject(projectId) {
  return request({
    url: '/camp/project/' + projectId,
    method: 'get'
  })
}

// 新增营地项目
export function addProject(data) {
  return request({
    url: '/camp/project',
    method: 'post',
    data: data
  })
}

// 修改营地项目
export function updateProject(data) {
  return request({
    url: '/camp/project',
    method: 'put',
    data: data
  })
}

// 删除营地项目
export function delProject(projectId) {
  return request({
    url: '/camp/project/' + projectId,
    method: 'delete'
  })
}
//项目景点审核
export function approveProject(query){
  return request({
    url:'/camp/project/approve',
    method:'put',
    data:query
  })
}




